package com.cn.wanxi.dao;

import com.cn.wanxi.model.UserModel;

import java.util.List;

public interface UserDao {
    int add(UserModel userModel);

    boolean findByUsername(String username);

    int findByUsernameAndPassword(UserModel userModel);

    List<UserModel> findAll(UserModel userModel);

    int del(int id);


    UserModel findById(int id);

    int update(UserModel userModel);

}
